<template>
  <div class="app">
    <ul class="nav">
      <li>
        <router-link :to="{ path: '/shouye' }">首页</router-link>
      </li>
      <li>
        <router-link :to="{ path: '/shequ' }">社区</router-link>
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.nav {
  width: 100%;
  height: 50px;
  background-color: aliceblue;
  display: flex;
  justify-content: space-evenly;
  position: relative;
  left: -10px;
  top: -25px;

  li {
    line-height: 50px;
    position: relative;
    left: -100px;
    list-style: none;

    a {
      text-decoration: none;
      color: black;
      margin: -50px;
    }

  }
}
</style>